package com.itsu.spbspider.exception;

/**
 * @author suben
 * @create time 2020/2/9 14:31
 */
public class ApiException extends SystemException {

    private int code;

    public ApiException() {
        super();
    }

    public ApiException(int code, String message) {
        super(message);
        this.code = code;
    }

    public ApiException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public ApiException(int code, Throwable cause) {
        super(cause);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
